package com.biz.primus.model.stock.exceptions;

import com.biz.primus.base.exception.ExceptionType;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * StockException
 *
 * @author jia JKLiues
 * @date 2017年10月19日
 * @reviewer
 * @see
 */
@Getter
@AllArgsConstructor
public enum StockException implements ExceptionType {

    NOT_EXIST(7700, "库存不存在"),
    DEPOT_CODE_IS_NULL(7701, "门店编码不能为空"),
    BN_IS_NULL(7702, "单号不能为空"),
    STOCK_CHANGE_TYPE_IS_NULL(7703, "库存变更类型不能为空"),
    CHANGE_STOCK_IS_EMPTY(7704, "库存变更明细不能为空"),
    QUANTITY_IS_NULL(7705, "变更数量不能为空"),
    PRODUCT_CODE_IS_NULL(7706, "商品编码不能为空"),
    GEO_ID_IS_NULL(7707, "区域ID不能为空"),
    CHANNEL_CODE_IS_NULL(7708, "渠道码不能为空"),
    PROVINCE_ID_IS_NULL(7709, "省id不能为空"),
    BN_REPEATED(7710, "单号重复引用");
    private int code;
    private String description;

}